
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @module parse-data-message
* @author: HJava
* @description: 解析透传消息
* @since: 2020-04-24 19:27:52
*/
var data_message_1 = __webpack_require__(/*! _models/data-message */ "./src/extra/models/data-message.ts");
function parseDataMessage(_a) {
    var type = _a.type, msgId = _a.msgId, data = _a.data, channel = _a.channel, deviceId = _a.deviceId;
    return new data_message_1.default({
        type: type,
        mid: msgId,
        data: data,
        channelId: channel,
        deviceId: deviceId
    });
}
exports.default = parseDataMessage;


//# sourceURL=webpack://MTDX/./src/extra/utils/parse-data-message.ts?